From: Richard M. Stallman Date: Tue, 27 Aug 2002 18:42:48 +0000 (+0000) Subject: (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~55639 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=cc9caa329f8e22a03f5a8fcdd3595641e7df8052;p=emacs.git (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off. --- diff --git a/src/xterm.c b/src/xterm.c index 4f07b5ec7a7..1830df51211 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -11894,9 +11894,14 @@ x_display_and_set_cursor (w, on, hpos, vpos, x, y) &new_cursor_width); } - /* Dim out or hollow out the cursor, - if it has blinked off or for nonselected windows. */ - if (w->cursor_off_p || cursor_off_state) + /* If cursor has blinked off, use the other specified state. */ + if (w->cursor_off_p) + { + new_cursor_type = FRAME_BLINK_OFF_CURSOR (f); + new_cursor_width = FRAME_BLINK_OFF_CURSOR_WIDTH (f); + } + /* Dim out or hollow out the cursor for nonselected windows. */ + if (cursor_off_state) { if (new_cursor_type == FILLED_BOX_CURSOR) new_cursor_type = HOLLOW_BOX_CURSOR;